package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
	"time"
)

type GiftLogAdmin struct {
	Id         int       `json:"id" gorm:"primaryKey;autoIncrement"`
	Giftid     int       `json:"giftid"`      //int(10) DEFAULT NULL,
	Uid        int       `json:"uid"`         //int(10) DEFAULT NULL COMMENT '送礼用户id',
	Relateid   int       `json:"relateid"`    //int(10) DEFAULT NULL COMMENT '归属id',
	Spend      int       `json:"spend"`       //int(10) DEFAULT NULL COMMENT '赠送礼物消耗金币数',
	CreateTime time.Time `json:"create_time"` //datetime DEFAULT NULL,
	Count      int       `json:"count"`       //int(10) DEFAULT '1'
	SpendType  int       `json:"spend_type"`  //int(1) DEFAULT 0 COMMENT '1-鹰钻 2-克拉';
}

func (GiftLogAdmin) TableName() string {
	return fmt.Sprintf("%sgift_log_admin", models.Prefix)
}
